package com.qige.homework.test;

import com.qige.homework.kind.Coder;
import com.qige.homework.kind.Manager;

public class homework3 {
    public static void main(String[] args) {
        Manager manager1 = new Manager();
        manager1.name = "项目经理";
        manager1.id = "123";
        manager1.salary = 15000;
        manager1.bonus = 6000;
        manager1.work();
        Coder coder1 = new Coder();
        coder1.name = "程序员";
        coder1.id = "123";
        coder1.salary = 10000;
        coder1.work();
        Manager manager2 = new Manager();
        manager2.setName("项目经理");
        manager2.setId("123");
        manager2.setSalary(15000);
        manager2.setBonus(6000);
        manager2.work();
        Coder coder2 = new Coder();
        coder2.setName("程序员");
        coder2.setId("123");
        coder2.setSalary(10000);
        coder2.work();
    }
}
